This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Any sucessful PHP on W2K ? (R5? --- SURE!) ~Bella Nonfanateroopsi 19.Feb.03 11:45 PM a Web browser Domino Server 6.0Windows 2000
noticed this little bit of code a while back on phpbuilder. Someone (I forgot the name) wrote in with this edit to the httpd.cfg file and surprisingly it works great!
All you need to do, is install PHP on your server. Then, add these lines to the bottom of you httpd.cfg file: (right before #EOF)
# change suffix to stop recursive mapping to Exec
Map *.php /internal/php*.phptype
# This translates the first part to exec php.exe
Exec /internal/php* C:\php\php*
# map the .php back in
Map *.phptype *.php
It works like a charm. You will need to edit the PHP.INI file in your windows directory however to play with force redirects:
cgi.force_redirect = 0
and also edit the document path
doc_root = C:\mywebroot\
And that’s it!
I have only found 2 problems since using this. First and most annoying is that if you have a PHP script that references it’s self… it will get confused on the naming (but hey, in domino… any PHP is a blessing… I’ll take it!)
And also something I was wondering if anyone had ideas on.
If you have the index page …. Say index.php Domino will parse the file fine as a full URL such as www.mywebsiteurl.com/whatever/index.php
BUT is you type in www.mywebsite.com/whatever/ then domino doesn’t parse the file (even though index.php shows up (as php code) and is set as the servers default document)
Any ideas on that one? – is there a way to attach “index.php” at the end of the URL, if no document is seen?
Thanks!
I hope this works for all of you
Sean Baker